<template>
  <el-button type="primary" @click="jumpLabelOrderInfo(id)" v-if="isOneShippingRole() || isMiddleRole()">{{$t('route.labelList')}}</el-button>
</template>

<script>
import {jumpLabelOrderInfo} from "@/utils/jumpView";
import {isMiddleRole, isOneShippingRole} from "@/utils/common";

export default {
  name: "LabelOrderButton",
  props: {
    id:{
      required: true,
      type: Number
    }
  },
  methods: {isMiddleRole, isOneShippingRole, jumpLabelOrderInfo}
}
</script>

<style scoped lang="scss">

</style>
